package com.b2b.message.admin.bean;

import java.io.Serializable;

import com.b2b.utils.Tools;

/**
 * 版权：上海极和信息科技有限公司
 * 功能：
 * 作者：朱伟峰
 * 邮箱：zhuweifeng24@gmail.com
 * 日期：2017年6月7日
 */
@SuppressWarnings("serial")
public class UserBean implements Serializable
{
	private long adminId = 0l;		// 管理员主键
	
	private long userId = 0l;		// 用户主键

	private String name = "";		// 用户名
	
	private String mobile = "";		// 手机号
	
	private int sex = 0;			// 性别
	
	private String iconUrl = "";	// 头像
	
	private String notes = "";		// 用户备注
	
	public long getAdminId()
	{
		return adminId;
	}

	public void setAdminId(long adminId)
	{
		this.adminId = adminId;
	}

	public long getUserId()
	{
		return userId;
	}

	public void setUserId(long userId)
	{
		this.userId = userId;
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public String getMobile()
	{
		return mobile;
	}

	public void setMobile(String mobile)
	{
		this.mobile = mobile;
	}

	public String getIconUrl()
	{
		if (Tools.isTrimEmpty(iconUrl))
		{
			if (sex == 0)
				iconUrl = "resources/dist/img/avatar5.png";
			else
				iconUrl = "resources/dist/img/avatar2.png";
		}
		return iconUrl;
	}

	public void setIconUrl(String iconUrl)
	{
		this.iconUrl = iconUrl;
	}

	public String getNotes()
	{
		if (Tools.isTrimEmpty(notes))
			notes = "这家伙很懒，什么都没留下。";
		return notes;
	}

	public void setNotes(String notes)
	{
		this.notes = notes;
	}

	public int getSex()
	{
		return sex;
	}

	public void setSex(int sex)
	{
		this.sex = sex;
	}

}
